package com.whut.coc.infrastructure.persistence.jpa.convert;

import com.whut.coc.domain.model.coc.valueobject.UserTag;
import com.whut.coc.infrastructure.persistence.jpa.entity.UserTagPO;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author: Zonghe Wang
 * @Date: 2025/6/22 16:33
 */
@NoArgsConstructor(access = lombok.AccessLevel.PRIVATE)
public class COCConverter {

    public static UserTagPO toPO(UserTag userTag) {
        return UserTagPO.builder()
                .id(userTag.getId())
                .uid(userTag.getUid())
                .tag(userTag.getTag())
                .build();
    }

}
